#Requires AutoHotkey v2.0

clipStatus := Gui()
cs := object()

; 创建一个GUI窗口
; Gui, New, +AlwaysOnTop, Clip

; 设置字体
clipStatus.SetFont("s10 q5","SimSun")
; Gui, Font, s12, SimSun

; 添加文本框和UpDown按钮
; Gui, Add, Text, x20 y20 w80 h30, 当前
clipStatus.MarginY := 0
clipStatus.SetFont("s12 q5","SimSun")
cs.text1 := clipStatus.Add("text","Left Section   ReadOnly Border","当前:")
cs.text2 := clipStatus.Add("text","Left Section   ReadOnly Border","当前:")
cs.text3 := clipStatus.Add("text","Left Section   ReadOnly Border","当前:")

; Gui, Add, Edit, x110 y20 w100 h30 vEdit1 +Center, 1/15
; Gui, Add, UpDown, vUpDown1 Range1-15, 1
;clipStatus.Add("UpDown","Range1-15 -Wrap")

; 显示窗口
; Gui, Show, w250 h100
clipStatus.show("w250 h250")

; 保持脚本运行
; Return

; 处理UpDown事件
; GuiClose:
; ExitApp
comVCenter()
comVCenter(){
    global clipStatus ; 声明全局变量
    global cs
    x:=""
    y:=""
    w:=""
    h:=""
    cs.text1.GetPos(&x,&y,&w,&h)
    
    MsgBox(x "," y "," w "," h)

}